 {% extends "base.html" %}

{% block content %}
<a href="{% url computer_add %}">Добавить компьютер</a>
    <table>
            {% for one in object_list %}
            <tr>
                <td><a href="{% url computer_detail one.pk %}">{{ one.name }}</a></td>
                <td>{{ one.ip_address }} </td>
            <td><a href="{% url computer_edit one.pk %}">Редактировать</a></td>
            <td>
                <form action="{% url computer_delete %}" method="POST">
                    {% csrf_token %}
                    {% include "delete_token.html" %}
                </form>
                </td>
            </tr>
            {% endfor %}
    </table>
{% endblock %}       
